Skip to content

ci(coverage): add swap headroom before the instrumented build (#4978) - #15041

Closed
EffortlessSteven wants to merge 3 commits into
mainfrom
claude/project-thread-46rmot
Closed

EffortlessSteven wants to merge 3 commits into
mainfrom
claude/project-thread-46rmot

Conversation

@EffortlessSteven

Copy link
Copy Markdown
Member

Requested by Steven Zimmerman · project thread

Summary

Swarm / Source Boundary

  • swarm-only CI, runner, routing, source-of-truth, or agent-operating surface

Source-of-truth Links

Governing issue or accepted claim: #4978 (claim comment #4978 (comment))
Acceptance delta (one sentence): A manually dispatched Coverage run on this branch gets past the instrumented build instead of losing its runner.

Candidate Relationships

Candidate branch (GitHub PR head is authoritative after publication): claude/project-thread-46rmot
Stack parent or prerequisite PR (if any): none

Scope

  • Other: one CI lane step

Production delta:

  • none

Evidence/support delta:

  • .github/workflows/coverage.yml: one new step, Add swap headroom for the instrumented build, before Clean coverage state. The Generate coverage step, which tools/repo-policy pins verbatim, is untouched.
  • changelog.d/4978-coverage-lane-swap-headroom.md.

Single acceptance criterion:

Non-goals:

Support-tier Impact

  • none

Policy Impact

  • CI lane

Proof

cargo fmt --check
# one workflow_dispatch run of coverage.yml on this branch (link added below when it finishes)

Result, failures, or skipped proof:

  • cargo fmt --check passed. cargo xtask precommit cannot finish in the 15 GB session container (rustc is OOM-killed on the lib-test build); that is infrastructure state, not a source result.
  • Dispatch proof: pending.

Claim Boundary

  • May claim: the lane has the same swap headroom as the required shards. Must not claim the runner loss is root-caused; the dispatch run is the only evidence either way.

Rollback

  • Revert this commit; no settings or branch-protection change.

CI Economics

  • LEM impact: none on PR or queue runs; the lane only runs on manual dispatch.
  • Workflows touched: coverage.yml
  • Branch protection impact: none
  • Failure mode caught: runner loss during the instrumented build
  • Cheaper signal considered: none; a dispatch run is the only way to observe it
  • Required lanes affected: none
  • Advisory lanes affected: none
  • On-demand/release lanes affected: Coverage (dispatch)
  • Labels that alter behavior: none
  • Artifact families affected: none
  • Rollback path: revert

Generated by Claude Code

The scheduled Coverage run on main lost its runner (shutdown signal, exit
143) about six minutes into the instrumented all-features build on
2026-11-09, 11-10 and 11-11, with ample disk free. The required shards and
Test Analytics hit the same loss under #12719 and add 8 GB of swap before
building; port that step. The coverage command, profile settings and test
population are unchanged.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016EQRVmA9riBRRR2nHwqzMK
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016EQRVmA9riBRRR2nHwqzMK
@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@EffortlessSteven EffortlessSteven self-assigned this Nov 18, 2026
@coderabbitai

coderabbitai Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

  • Ask an admin to enable usage-based reviews

Open in CodeRabbit

Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing.

Next included review available in 48 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 150 included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Essentials
  • Run ID: c018aae9-aff0-4ec5-9b83-a760c602446a
Commits

Reviewing files that changed from the base of the PR and between 876bbbf and ccdc9ff.

Files selected for processing: 2

  • .github/workflows/coverage.yml
  • changelog.d/4978-coverage-lane-swap-headroom.md
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

check-workflows allows coverage.yml one non-empty line per run block; the
repo-policy frontdoor tests inside the coverage run enforce it.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016EQRVmA9riBRRR2nHwqzMK

Copy link
Copy Markdown
Member Author

Proof run 1 (44248830391, head 4982b60) failed, and the failure is this PR's.

  • What held: with the swap step the runner was not lost. Generate coverage ran 16 minutes (975,578 ms), finished the instrumented build and reached the tests; the earlier runs lost the runner about 6 minutes in.
  • What failed: 10 repo-policy frontdoor tests inside the coverage run, because check-workflows allows coverage.yml one non-empty line per run block (policy/workflow_allowlist.txt, analysis(rust): recognize canonical proptest tests with fixed inputs #10839) and the swap step had 8. I had not run check-workflows locally before pushing.
  • Fix: ccdc9ff collapses the step to one line (same commands, warning on failure kept, the /mnt fallback and free -m dropped). xtask check-workflows and xtask check-policy-all pass locally. A second dispatch run is in progress on that head.

Generated by Claude Code

Copy link
Copy Markdown
Member Author

Closing without merge. Proof run 2 (44251633089, head ccdc9ff) got through the instrumented build but lost its runner about 23 minutes into Generate coverage, in the test phase. The acceptance criterion (a dispatch run that finishes Generate coverage) is not met, so this does not land. Findings and the proposed next experiment are on #4978: #4978 (comment)


Generated by Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants